
#Region "Summary"
''' -----------------------------------------------------------------------------
''' Project	 : PTT.StationsTracking.Data
''' Class	 : StationsTracking.Data.QueryInvCarProvince
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' Query Result Single Business Entity
''' </summary>
''' <remarks>
''' Sample of business entity coding
''' </remarks>
''' <history>
''' 	[Generater by Nok]	7/4/2549 15:28:04	Created
''' </history>
''' -----------------------------------------------------------------------------
#End Region

#Region ".NET Framework Class Import"
Imports System
Imports System.Xml.Serialization
Imports System.IO
Imports System.Runtime.Serialization
Imports System.Runtime.Serialization.Formatters.Binary
Imports System.Collections
#End Region

<Serializable()> _
Public Class QueryInvCarProvince
#Region "Internal member variables"
    Private _ProvinceId As Int32
    Private _ProvinceName As String
#End Region

    Public Sub New()
        _ProvinceId = Nothing
        _ProvinceName = Nothing
    End Sub

    Public Sub New(ByVal ProvinceId As Int32, _
       ByVal ProvinceName As String)
        _ProvinceId = ProvinceId
        _ProvinceName = ProvinceName
    End Sub

#Region "Property"

    Public Property ProvinceId() As Int32
        Get
            Return _ProvinceId
        End Get
        Set(ByVal value As Int32)
            _ProvinceId = value
        End Set
    End Property


    Public Property ProvinceName() As String
        Get
            Return _ProvinceName
        End Get
        Set(ByVal value As String)
            _ProvinceName = value
        End Set
    End Property

#End Region
End Class

''' -----------------------------------------------------------------------------
''' Project	 : PTT.StationsTracking.Data
''' Class	 : StationsTracking.Data.QueryInvCarProvinces
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' Collection of query result
''' </summary>
''' <remarks>
''' Sample
''' </remarks>
''' <history>
''' 	[NOK'S Generater]	7/4/2549 15:28:04	Created
''' </history>
''' -----------------------------------------------------------------------------
<Serializable()> _
Public Class QueryInvCarProvinces
    Inherits CollectionBase


    Default Public ReadOnly Property Item(ByVal index As Integer) As QueryInvCarProvince
        Get
            If (index < 0 Or index >= Me.InnerList.Count) Then
                Throw New Exception("index has to be between 0 and " & (Me.InnerList.Count - 1).ToString())
            Else
                Return CType(Me.InnerList(index), QueryInvCarProvince)
            End If
        End Get
    End Property

    Public Sub Add(ByVal info As QueryInvCarProvince)
        Me.InnerList.Add(info)
    End Sub

    Public Sub SetItem(ByVal index As Integer, ByVal value As QueryInvCarProvince)
        If (index < 0 Or index >= Me.InnerList.Count) Then
            Throw New Exception("index has to be between 0 and " & (Me.InnerList.Count - 1).ToString())
        Else
            Me.InnerList(index) = value
        End If
    End Sub


End Class
